<!-- 导航条
================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top" role="banner">
    <div class="container">
        <div class="navbar-header nav_z" style="margin:0">
            <a class="navbar-brand" href="{:U('index/index')}">网络中心</a>
              <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
        </div>
            <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
                <ul class="nav navbar-nav qs_nav">

                    <think:nav name="nav">
                        <eq name="nav.pid" value="0">
                        <li>
                            <a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
                        </li>
                        </eq>
                    </think:nav>
                </ul>

                <ul class="nav navbar-nav pull-right qs_nav">
                    <if condition="is_login()">
                        <ul class="nav navbar-nav" style="margin-right:0">
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-left:0;padding-right:0">{:get_nickname(is_login())} <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="{:U_U('Member/Profile/index')}" target="_black">用户中心</a></li>
                                    <li><a href="{:U_U('Member/Index/logout')}">退出</a></li>
                                </ul>
                            </li>
                        </ul>
                    <else/>
                    <ul class="nav navbar-nav" style="margin-right:0">
                        <li>
                            <a href="{:U_U('Member/Index/login')}" target="_blank">登录</a>
                        </li>
                        <li>
                            <a href="{:U_U('Member/Index/register')}" target="_blank">注册</a>
                        </li>
                    </ul>
                    </if>
                </ul>

                <!-- <form class="navbar-form navbar-right nav_search" style="height: 30px" role="search" method="get" action="{:U('Article/search')}">
                    <div class="form-group  nav_input">
                      <input type="text" class="form-control" style="height: 25px" name="keyword" placeholder="请输入搜索内容" >
                    </div>
                </form> -->

                
            </nav>
    </div>
</div>
